/*
 * 文 件 名:  clientService.java
 * 版    权:   深圳埃思欧纳信息咨询有限公司版权所有. YYYY-YYYY,  All rights reserved
 * 描    述:   <描述>
 * 修 改 人:  honny.huang
 * 修改时间: 2011-4-2
 * 跟踪单号:  <跟踪单号>
 * 修改单号:  <修改单号>
 * 修改内容:  <修改内容>
 */
package com.hessian.clientSide;

import java.net.MalformedURLException;

import org.apache.log4j.Logger;

import com.caucho.hessian.client.HessianProxyFactory;
import com.hessian.remoteSide.ITestBasic;

/**
 * <一句话功能简述> <功能详细描述>
 *
 * @author honny.huang
 * @version [版本号, 2011-4-2]
 * @see [相关类/方法]
 * @since [产品/模块版本]
 */

public class ClientService
{
//	private static Logger logger = Logger.getLogger(ClientService.class);
	
	private static HessianProxyFactory factory = new HessianProxyFactory();

    // 职位搜索接口地址，数据库配置
//    private static String url = ServiceConstants.POSTSEARCH_URL;
	  private static String url = "http://192.168.2.133:9000/knowledgePoints/test.do";	

    /**
     * 根据搜索条件查询各个筛选条件对应的职位数量 
     * 
     */
    public static void clientServiceTest()
    {
//    	logger.debug("knowledgePoints - Enter clientService.clientServiceTest().....");
        try
        {
        	ITestBasic basic = (ITestBasic) factory.create(ITestBasic.class, url);
            basic.test(); 
        }
        catch (MalformedURLException e)
        {
            e.printStackTrace();
        }
//        logger.debug("knowledgePoints - Exit clientService.clientServiceTest()......");
    }

}
